$OpenBSD: patch-kcontrol_keyboard_CMakeLists_txt,v 1.2 2014/01/28 14:49:26 zhuk Exp $
Fix build.
--- kcontrol/keyboard/CMakeLists.txt.orig	Fri Oct 14 22:11:10 2011
+++ kcontrol/keyboard/CMakeLists.txt	Fri Oct 14 22:12:16 2011
@@ -1,4 +1,4 @@
-SET(CMAKE_REQUIRED_LIBRARIES -lXi)
+SET(CMAKE_REQUIRED_LIBRARIES ${X11_Xi_LIB})
 CHECK_FUNCTION_EXISTS(_XiGetDevicePresenceNotifyEvent XiGetDevicePresenceNotifyEvent_EXISTS)
 
 if( X11_Xinput_FOUND AND XiGetDevicePresenceNotifyEvent_EXISTS )
